import axios from 'axios'
export const poregister = (data) => {
    return axios({
        method: 'POST',
        url: '/register',
        data: data
    })


}

export const prlogin = (data) => {
    return axios({
        method: 'POST',
        url: '/login',
        data: data
    })


}

export const gettitle = () => {
    return axios({
        method: 'GET',
        url: '/title',
    })


}

//获取主页界面内容
export const getaritle = (data) => {
    return axios({
        method: 'POST',
        url: '/all',
        data: data
    })


}



export const gethtml = (data) => {
    return axios({
        method: 'POST',
        url: '/alls',
        data: data
    })


}

export const pofollow = (data) => {
    return axios({
        method: 'POST',
        url: '/follow',
        data: data
    })


}


export const getfollow = (data) => {
    return axios({
        method: 'POST',
        url: '/getfollow',
        data: data

    })
}


//获取用户头像及信息
export const getinfo = () => {
    return axios({
        method: 'GET',
        url: '/getinfo',
    })
}



export const getsearch = (data) => {
    return axios({
        method: 'POST',
        url: '/search',
        data: data
    })
}


export const getpush = (data) => {
    return axios({
        method: 'POST',
        url: '/push',
        data: data,
        responseType: 'blob'
    })
}
